<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="renderer" content="webkit"> 	
	<title>[title]-POSCRM</title>
	<link rel="shortcut icon" href="__STATIC__/favicon.ico" />
	<link rel="stylesheet" type="text/css" href="__STATIC__/css/font.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/css/ui.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css">
	<link rel="stylesheet" type="text/css" href="__STATIC__/layui/css/layui.css">
	<script type="text/javascript" src="__STATIC__/js/jquery.min.js"></script>
	<script type="text/javascript" src="__STATIC__/js/ui.js"></script>
	<script type="text/javascript" src="__STATIC__/js/public.js"></script>
	<script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
	<script type="text/javascript" src="__STATIC__/layui/layui.js"></script>
	<script type="text/javascript" src="__STATIC__/js/global.js"></script>
</head>
<body>
	<div id="main-container">
		<div class="header">
			<div class="logo fl"><a href="javascript:;"><i class="icon icon-阿里云"></i></a></div>
			<div class="head_name fl"><a href="{:url('common/index')}">管理控制台</a></div>
			<div class="nav fl">
				<ul class="clearfix">
					<!--<li><a href="{:url('activation/total')}"><i class="icon icon-icon-menu-01"></i>激活统计</a></li>-->
					{if condition="(in_array('Platform/total',$user['account_auth'])) and ($user['position'] neq 1)"}
					<li><a href="{:url('platform/total')}"><i class="icon icon-icon-menu-02"></i>交易统计</a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('platform/total')}"><i class="icon icon-icon-menu-02"></i>交易统计</a></li>
					{/if}
					{if condition="(in_array('Sku/total',$user['account_auth'])) and ($user['position'] neq 1)"}
					<li><a href="{:url('sku/total')}"><i class="icon icon-icon-menu-03"></i>库存统计</a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('sku/total')}"><i class="icon icon-icon-menu-03"></i>库存统计</a></li>
					{/if}
				</ul>
			</div>
			<div class="head_tool fr">
				<a href="{:url('common/index')}"><i class="icon-首页"></i></a>
				<a href="{:url('common/clear')}"><i class="icon-更新"></i></a>
				<a href="{:url('index/login_out')}"><i class="icon-退出"></i></a>
			</div>
		</div>
		<div class="sidebar">
			<div class="sidebar_tool"><i class="icon-dedent"></i></div>
			<div class="nav_left">
				<ul>
					{if condition="(in_array('Customer/index',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('customer/index')}"><i class="icon-icon-child-1-1"></i><span>客户</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('customer/index')}"><i class="icon-icon-child-1-1"></i><span>客户</span></a></li>
					{/if}
					{if condition="(in_array('Platform/index',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('platform/index')}"><i class="icon-icon-child-1-2"></i><span>平台</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('platform/index')}"><i class="icon-icon-child-1-2"></i><span>平台</span></a></li>
					{/if}
					{if condition="(in_array('Sku/put',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('sku/put')}"><i class="icon-icon-child-1-3"></i><span>入库</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('sku/put')}"><i class="icon-icon-child-1-3"></i><span>入库</span></a></li>
					{/if}
					{if condition="(in_array('Sku/out',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('sku/out')}"><i class="icon-icon-child-1-4"></i><span>出库</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('sku/out')}"><i class="icon-icon-child-1-4"></i><span>出库</span></a></li>
					{/if}
					{if condition="(in_array('Sku/quit',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('sku/quit')}"><i class="icon-icon-child-1-5"></i><span>退库</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('sku/quit')}"><i class="icon-icon-child-1-5"></i><span>退库</span></a></li>
					{/if}
					<!--{if condition="(in_array('Activation/index',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('activation/index')}"><i class="icon-icon-child-1-6"></i><span>激活</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('activation/index')}"><i class="icon-icon-child-1-6"></i><span>激活</span></a></li>
					{/if}-->
					{if condition="(in_array('Money/index',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('money/index')}"><i class="icon-icon-child-1-7"></i><span>分红</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('money/index')}"><i class="icon-icon-child-1-7"></i><span>分红</span></a></li>
					{/if}
					{if condition="(in_array('Service/index',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('service/index')}"><i class="icon-icon-child-1-2"></i><span>维修</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('service/index')}"><i class="icon-icon-child-1-2"></i><span>维修</span></a></li>
					{/if}
					{if condition="(in_array('Worker/index',$user['account_auth'])) and ($user['position'] neq 1)"}
                    <li><a href="{:url('worker/index')}"><i class="icon-icon-child-1-1"></i><span>员工</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('worker/index')}"><i class="icon-icon-child-1-1"></i><span>员工</span></a></li>
					{/if}
					{if condition="(in_array('Sku/dolog',$user['account_auth'])) and ($user['position'] neq 1)"}
					<li><a href="{:url('sku/dolog')}"><i class="icon-icon-child-1-5"></i><span>日志</span></a></li>
					{elseif condition="$user['position'] eq 1"/}
					<li><a href="{:url('sku/dolog')}"><i class="icon-icon-child-1-5"></i><span>日志</span></a></li>
					{/if}
				</ul>
			</div>
		</div>